<%-- 
    Document   : firstJsp
    Created on : May 23, 2011, 3:13:34 PM
    Author     : ut1e8p
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>First JSP</title>
    </head>
    <body>
        <spring:url var="firstFormAction" value="/first/save.do"/>
        <form:form method="post" commandName="firstBean" action="${firstFormAction}">
            <table>
                <tr>
                    <td>
                        <form:label path="firstName">
                            <spring:message code="label.familyName"/>:
                        </form:label>
                    </td>
                    <td><form:input path="familyName"/></td>
                </tr>
                <tr>
                     <td>
                        <form:label path="firstName">
                            <spring:message code="label.firstName"/>:
                        </form:label>
                    </td>
                    <td><form:input path="firstName"/></td>
                </tr>

                <tr>
                    <td colspan="2" align="right">
                        <input type="submit" value="<spring:message code="label.submit"/>">
                    </td>
                </tr>
            </table>
        </form:form>
    </body>
</html>
